package com.asset.dispoal.assetInstitutionBatchParameter.domain.db.mapper;

import com.asset.dispoal.assetInstitutionBatchParameter.domain.db.entity.AssetInstitutionBatchParameter;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import tech.mhuang.pacebox.springboot.protocol.data.Page;

import java.util.List;

/**
 * @author qr
 * @date 2022/3/29$
 */
@Mapper
public interface AssetInstitutionBatchParameterMapper {

    /**
     * 批量保存
     *
     * @param assetInstitutionBatchParameter
     */
    void saveBatch(@Param("request") List<AssetInstitutionBatchParameter> assetInstitutionBatchParameter);


    /**
     * 批量修改
     *
     * @param assetInstitutionBatchParameter
     */
    void updateBatch(@Param("request") List<AssetInstitutionBatchParameter> assetInstitutionBatchParameter);


    void delete(@Param("id") String id);


    int count(@Param("assetInstitutionBatchParameter") AssetInstitutionBatchParameter assetInstitutionBatchParameter);


    List<AssetInstitutionBatchParameter> queryPage(@Param("assetInstitutionBatchParameter") Page<AssetInstitutionBatchParameter> assetInstitutionBatchParameter);
}
